﻿package mortal.common.font
{
    import flash.utils.*;

    public class FontName extends Object
    {
        private var _fontName:String;
        public static var dcFontName:Dictionary = new Dictionary();

        public function FontName(param1:String)
        {
            this._fontName = param1;
            dcFontName[param1] = this;
            return;
        }// end function

        public function get fontName() : String
        {
            return this._fontName;
        }// end function

        public function set fontName(param1:String) : void
        {
            this._fontName = param1;
            return;
        }// end function

        public function getFontSize(param1:int) : int
        {
            return param1;
        }// end function

        public static function getFontByName(param1:String) : FontName
        {
            if (dcFontName.hasOwnProperty(param1))
            {
                return dcFontName[param1];
            }
            return null;
        }// end function

    }
}
